package com.unitech.order.service.intf;

import com.unitech.order.api.beans.ItemInfo;
import com.unitech.order.api.beans.OrderChangeParam;
import com.unitech.order.api.beans.OrderInfo;
import com.unitech.order.api.beans.OrderParam;

import java.util.List;

public interface OrderService {

    String generateOrderId();
    OrderInfo createOrder(OrderParam request);
    OrderInfo loadOrder(String id);
    List<ItemInfo> loadOrderItems(String id);

    OrderInfo updateOrderState(OrderChangeParam request);

    void pay(String orderId);
}
